package com.lee.spring.service;

import com.lee.mybatis.entity.Role;
import com.lee.mybatis.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {

    User login(@Param("username") String username, @Param("password") String password);

    void insert(User user);

    void updateById(User user);

    void deleteById(@Param("id")Integer id);

    List<User> selectWithUserNo();

    List<Role> selectByUserId(@Param("id") Integer id);

}
